// 自定义图标按需动态加载
// createVNode创造dom

import { createVNode } from 'vue'
import * as $Icon from '@ant-design/icons-vue'
const Icon = (props) => {
  // console.log(props)
  let size = props.size?props.size:14
  return createVNode($Icon[props.icon],{style:'font-size:'+size+'px;'})
}
export default Icon